using System;
using System.Collections.Generic;
using UnityEngine;

namespace DA.AnimGraph {
    public class AnimGraphResourcesReferenceAsset : ScriptableObject {
        [Serializable]
        public class Entry {
            public AUID uuid;
            public UnityEngine.Object resource;
        }

        public List<Entry> resources;

        public Dictionary<AUID, UnityEngine.Object> ToDIct() {
            var dict = new Dictionary<AUID, UnityEngine.Object>(resources.Count);
            foreach (var entry in resources) {
                dict.Add(entry.uuid, entry.resource);
            }
            return dict;
        }
    }
}
